package org.ilovecode.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class RenderEvent extends Event 
	{
		
		public static const FLOOR_CLICKED:String = "floorClicked";
		
		private var _floorNumber:int = -1;
		private var _isBusiness:Boolean = false;
		
		public function RenderEvent(type:String, floorNumber:int, isBusiness:Boolean = false, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			_floorNumber = floorNumber;
			_isBusiness = isBusiness;
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new RenderEvent(type, floorNumber, isBusiness, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("RenderEvent", "type", "isBusiness", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get floorNumber():int {
			return _floorNumber;
		}
		
		public function get isBusiness():Boolean {
			return _isBusiness;
		}
		
	}
	
}